/* ===========================================
   PROJECTS PAGE - Tamamen Yenilenmiş Modern Tasarım
   =========================================== */

/* Ana Container ve Genel Stil */
.projects-page {
    min-height: 100vh;
    background: #f0efeb;
}

/* Hero Section - Minimalist ve Şık */
.projects-hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #2a3b5c 100%);
    overflow: hidden;
    color: white;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 28, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(242, 127, 150, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.projects-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.projects-hero-title {
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    line-height: 0.9;
    position: relative;
    display: inline-block;
}

.projects-hero-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-accent));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
    transform: rotate(-2deg);
}

.projects-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Stats Section - Floating Cards */
.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.projects-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.projects-stat-card:hover::before {
    left: 100%;
}

.projects-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.projects-stat-number {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 900;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 2px 10px rgba(236, 28, 36, 0.3);
}

.projects-stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Main Content */
.projects-main {
    padding: 8rem 0;
    background: #f0efeb;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Filter Section - Modern Toggle */
.projects-filter-section {
    margin-bottom: 5rem;
    text-align: center;
}

.projects-filter-title {
    font-size: 1.2rem;
    color: var(--brand-navy);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.projects-filter-grid {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.projects-filter-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.projects-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.projects-filter-btn:hover,
.projects-filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 28, 36, 0.3);
}

.projects-filter-btn:hover::before,
.projects-filter-btn.active::before {
    opacity: 1;
}

/* Projects Grid - Masonry Style */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Project Card - Modern Design */
.project-card {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border-color: rgba(236, 28, 36, 0.2);
}

/* Project Image */
.project-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Project Badge */
.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(236, 28, 36, 0.3);
    z-index: 2;
}

/* Project Content */
.project-content {
    padding: 2.5rem;
    background: white;
}

.project-category {
    display: inline-block;
    background: rgba(236, 28, 36, 0.1);
    color: var(--brand-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--brand-primary);
}

.project-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.ongoing {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.project-status.completed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.project-status.planned {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Project Overlay - Alternative Design */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(111, 0, 0, 0.95) 0%, rgba(236, 28, 36, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content {
    text-align: center;
    color: white;
}

.project-overlay-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-overlay-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.project-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--brand-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-overlay-cta:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 28, 36, 0.4);
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 6rem 2rem;
    color: #64748b;
}

.projects-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.projects-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.projects-empty-text {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.project-card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 6rem 0 4rem;
    }

    .projects-hero-title {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .projects-hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 3rem;
    }

    .projects-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .projects-stat-card {
        padding: 2rem 1.5rem;
    }

    .projects-stat-number {
        font-size: clamp(2.5rem, 6vw, 3rem);
    }

    .projects-main {
        padding: 4rem 0;
    }

    .projects-container {
        padding: 0 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-content {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-overlay {
        padding: 2rem;
    }

    .project-overlay-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-hero-inner {
        padding: 0 1rem;
    }

    .projects-hero-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .projects-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-stat-card {
        padding: 1.5rem 1rem;
    }

    .projects-filter-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-filter-btn {
        text-align: center;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .projects-hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .project-card {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .project-title {
        color: #ffffff;
    }

    .project-description {
        color: #cccccc;
    }
}